package org.elip.teststatistics.server;

import java.io.IOException;

import javax.xml.stream.XMLStreamException;

import org.elip.teststatistics.client.ProductService;
import org.elip.teststatistics.server.xml.XMLParser;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class ProductServiceImpl extends RemoteServiceServlet implements ProductService {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public String[] generateProducts() {
		try {
			return XMLParser.parseProducts();
		} catch (XMLStreamException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}

}
